package com.zhbcm.outupload.common.exception;

/**
 * @Author: 朝花不迟暮
 * @Date: 2021/12/23 22:33
 * @Description:
 */
public class ApiException extends RuntimeException {
    private static final long serialVersionUID = -6690723088958066575L;

    private int code;
    private String message;

    public ApiException(String message) {
        this.code = 201;
        this.message = message;
    }

    public ApiException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}